package com.hgyc.mom.wms.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hgyc.mom.common.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 入库单明细
 * </p>
 *
 * @author fwj
 * @since 2025-10-08
 */
@Data
@TableName("wms_stock_in_detail")
@Schema(name="入库单明细对象", description="入库单明细对象")
public class WmsStockInDetail implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "记录ID")
    private Long id;

    @Schema(description = "入库单ID")
    private Long stockInId;

    @Excel(name = "物料ID")
    @Schema(description = "物料ID")
    private Long materialId;

    @Excel(name = "待入库数量")
    @Schema(description = "待入库数量")
    private BigDecimal qtyPending;

    @Excel(name = "已入库数量")
    @Schema(description = "已入库数量")
    private BigDecimal qtyReceived;

    @Excel(name = "状态")
    @Schema(description = "状态")
    private String status;

    @Excel(name = "备注")
    @Schema(description = "备注")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新者")
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
